//
//#include "lib/include/lib.hashtable.h"
//#include "lib/include/getConf.h"
//#include "lib/include/lib.log.h"
//#include "lib/include/lib.queue.h"
//#include "lib/include/lib.common.h"
//#include "lib/include/lib.bst.h"
//#include "lib/include/lib.time.h"
//#include "lib/include/lib.dlt.h"
//
//#include <string.h>
//#include <stdio.h>
//
//#include <sys/types.h>
////#include <regex.h>
//
//
//int test (int *a) {
//    printf("%d\n",a);
//	return TRUE;
//}
//int compareAB(char *a, char *b){
//    if(atoi(a)>atoi(b)){
//        return 1;
//    }else if(atoi(a)<atoi(b)){
//        return 0;
//    }else{
//        return 2;
//    }
//}
//int main() {
//
//    /*hTab h;
//    initHashTable(&h,300);
//    int a=333;
//    int b=444;
//
//    hItem *c=(hItem *)malloc(sizeof(hItem));;
//    printf("%d\n",putHashItem(&h,"aaa",&a));
//    printf("%d\n",putHashItem(&h,"bbb",&c));
//
//    printf("%d\n",putHashItem(&h,"aaa",&a));
//
//    printf("%d\n",*(int *)getHashItem(&h,"aaa"));
//    printf("%d\n",*(int *)delHashItem(&h,"aaa"));
//
//    freeHashTable(&h,0,NULL);
//    */
//
////    initConf("/media/d/code/c/was/trunk/Server");
////    hTab *phconf=getCurrentConfHtab();
////    conf_param_item *cpi=(conf_param_item *)getHashItem(phconf,"WASD_LOG_LEVEL");
//////    printf("%s",cpi->key);
//////    printf("%s",cpi->value);
////#ifdef __linux__
////    logIt(LOG_INFO,"why not %d %s %% %ld %lf",222,"sfsfsd",222222222222,2.22222222);
////#endif
////
////    closeConf(phconf);
//
////    int a=2;
////    queue *pq=qInit();
////    qPush(pq,&a);
////    qPush(pq,&a);
////    printf("%d\n",*(int *)qPop(pq));
////    printf("%d\n",qLength(pq));
////
////    printf("%d\n",*(int *)qPop(pq));
////    qEmpty(pq,0);
////    printf("%d\n",qLength(pq));
////
////    qClose(pq,0);
////
////    char *a="\\*\\/[1-9]{1,2}";
////    printf("%s\n",a);
//
//
////        regex_t re;
////        regmatch_t rm;
////        int err=0;
////
////        char *ph="1,2,3,4,5-9";
////        regcomp(&re,"^((([1-9]{1,2})|([1-9]{1,2}\\-[1-9]{1,2}(\\/[1-9]{1,2})?))\\,)*(([1-9]{1,2})|([1-9]{1,2}\\-[1-9]{1,2}(\\/[1-9]{1,2})*))",REG_EXTENDED);
////
////        err=regexec(&re,ph,(size_t)1,&rm,0);
////
////
////
////        if(0==err){
////                    regfree(&re);
////                    /*
////                           * /xx is exclusive.
////                    */
////
////                    printf("%d   %d   %d\n",rm.rm_so,rm.rm_eo,(strlen(ph)==rm.rm_eo));
////        }
//
////
////strSplit *p_ss=initToken(",./");
////
////char *a="a,b,c,ee,ccc";
////getSplitString(a,p_ss);
////
////getSplitString(a,p_ss);
////getSplitString(a,p_ss);
////getSplitString(a,p_ss);
////
////printf("%s",p_ss->splitStr);
//    //compareAB;
////    BST *p_main=initBST();
////    char *a="3";
////    char *b="4";
////    char *c="47";
////    char *d="15";
////    insertBSTNode(p_main,"444","444",compareAB,NULL);
////    insertBSTNode(p_main,"222","555",compareAB,NULL);
////
////    insertBSTNode(p_main,"567","456",compareAB,NULL);
////
////    char **p_void=(char **)traverseBSTKey(p_main);
////
////    printf("%s",p_void[0]);
////
////    freeBST(p_main,NULL);
//
////     timerDIY *p_td=initTimerDIY();
////
////     addTimerStr(p_td,"*/5 5-10/2,11-13/4 7-9 1,2,4-6/2 *");
////    dLinkNode *p_dln;
////    dLinkList *p_dll=initDLinkList();
////
////    addDLinkListItem(p_dll,"test1",NULL);
////
////    for(p_dln=p_dll->head;p_dln!=p_dll->tail;p_dln=p_dln->next)
////        printf("%s\n",p_dln->key);
////    printf("\n\n");
////    addDLinkListItem(p_dll,"test1",NULL);
////    addDLinkListItem(p_dll,"test1",NULL);
////    addDLinkListItem(p_dll,"test1",NULL);
////    addDLinkListItem(p_dll,"test1",NULL);
////    for(p_dln=p_dll->head;p_dln!=p_dll->tail;p_dln=p_dln->next)
////        printf("%s\n",p_dln->key);
////
////    FREEUP(p_dll);
//
//	struct tm tm_test;
//	time_t t_test;
//	timerDIY *p_tmd;
//	tm_test.tm_year=2010-1900;
//	tm_test.tm_mon=10;
//	tm_test.tm_mday=16;
//	tm_test.tm_hour=10;
//	tm_test.tm_min=50;
//	tm_test.tm_sec=0;
//	t_test=mktime(&tm_test);
//	printf("%d\n",t_test);
//
//	p_tmd=initTimerDIY();
//
//
//	addTimerStr(p_tmd,"21-23,25-39/4 16,17,19-23/2 17-21 9-11 *");
//	getNextWaitSecs(p_tmd,t_test);
//    return 0;
//}

#include "lib/include/lib.misc.h"
#include <stdio.h>


int main(){
	char *a="   what the heck is this";

	printf("%d %s",strdlb(a),a);

}
